MAKEFILE_DIR?=.
ALLMAKEFILES = $(wildcard $(MAKEFILE_DIR)make_files/*.mk)
ALLMAKEFILENAME = $(patsubst $(MAKEFILE_DIR)make_files/%.mk,%, $(ALLMAKEFILES))
ALLCLEAN=$(patsubst %,clean-%, $(ALLMAKEFILENAME))

$(ALLMAKEFILENAME):%:
	${MAKE} -f $(MAKEFILE_DIR)make_files/$@.mk

$(ALLCLEAN):%:
	${MAKE} clean -f $(MAKEFILE_DIR)make_files/$(patsubst clean-%,%,$@).mk

.PHONY:clean
clean:$(ALLCLEAN)
